/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework.demo001;

/**
 *
 * @author Administrator
 */
public class Add { 
    public int add(int a, int b) {
        int result = a + b;
        return result;
    }


    public static void main(String args[]) {
//        atest = new test();
       Add aadd= new Add();
        int x = 10, y = 20;
        int r = aadd.add(10, 20);
        System.out.println(x + "+" + y + "="+r);
    }

}
